package com.ruoyi.board.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 板块管理对象 t_board
 * 
 * @author zzzyh
 * @date 2025-06-11
 */
public class Board extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 板块id */
    @Excel(name = "板块id")
    private Long id;

    /** 板块名 */
    @Excel(name = "板块名")
    private String name;

    /** 相关文章数 */
    @Excel(name = "相关文章数")
    private Long articleCount;

    /** 板块排名 */
    private Long sort;

    /** 板块状态 */
    @Excel(name = "板块状态")
    private Integer state;

    /** 是否删除，0正常1删除 */
    @Excel(name = "是否删除，0正常1删除")
    private Integer isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setArticleCount(Long articleCount) 
    {
        this.articleCount = articleCount;
    }

    public Long getArticleCount() 
    {
        return articleCount;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("articleCount", getArticleCount())
            .append("sort", getSort())
            .append("state", getState())
            .append("isDelete", getIsDelete())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
